package com.tansun.easycare.rule.ruletest.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 对比测试请求Entity
 *
 * @author lph
 * @version 2017-09-22
 */
public class RuleReq extends RuleBaseEntity<RuleReq> {

    private static final long serialVersionUID = 1L;
    private String partnerId;        // 合作方标识
    private String appKey;        // 应用标识
    private String version;        // 接口版本号
    private String eventType;        // 事件类型
    private String serialNo;        // 流水号
    private String occurTime;        // 事件发生时间
    private String txParameter;        // 查询条件
    private String projectCode;        // 规则项目编号
    private String entryPoint;        // 入口点参数
    private String ruleFlowCode;        // rule_flow_code
    private String ruleFlowVersion;        // rule_flow_version

    public RuleReq() {
        super();
    }

    public RuleReq(String id) {
        super(id);
    }

    @Length(min = 0, max = 32, message = "合作方标识长度必须介于 0 和 32 之间")
    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    @Length(min = 1, max = 64, message = "应用标识长度必须介于 1 和 64 之间")
    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    @Length(min = 1, max = 8, message = "接口版本号长度必须介于 1 和 8 之间")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Length(min = 1, max = 3, message = "事件类型长度必须介于 1 和 3 之间")
    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    @Length(min = 1, max = 64, message = "流水号长度必须介于 1 和 64 之间")
    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    @Length(min = 1, max = 13, message = "事件发生时间长度必须介于 1 和 13 之间")
    public String getOccurTime() {
        return occurTime;
    }

    public void setOccurTime(String occurTime) {
        this.occurTime = occurTime;
    }

    public String getTxParameter() {
        return txParameter;
    }

    public void setTxParameter(String txParameter) {
        this.txParameter = txParameter;
    }

    @Length(min = 1, max = 32, message = "规则项目编号长度必须介于 1 和 32 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 1, max = 32, message = "入口点参数长度必须介于 1 和 32 之间")
    public String getEntryPoint() {
        return entryPoint;
    }

    public void setEntryPoint(String entryPoint) {
        this.entryPoint = entryPoint;
    }

    @Length(min = 1, max = 32, message = "rule_flow_code长度必须介于 1 和 32 之间")
    public String getRuleFlowCode() {
        return ruleFlowCode;
    }

    public void setRuleFlowCode(String ruleFlowCode) {
        this.ruleFlowCode = ruleFlowCode;
    }

    @Length(min = 1, max = 10, message = "rule_flow_version长度必须介于 1 和 10 之间")
    public String getRuleFlowVersion() {
        return ruleFlowVersion;
    }

    public void setRuleFlowVersion(String ruleFlowVersion) {
        this.ruleFlowVersion = ruleFlowVersion;
    }

}